<%-- 
    Document   : formAjoutCreneau
    Created on : 28 mars 2013, 11:15:08
    Author     : ali
--%>


<%@page import="java.util.HashMap"%>
<%@page import="java.util.ArrayList"%>
<%@page import="EDT.obj.Formation"%>
<%@page contentType="text/html" pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
                
        <title>Supprimer Un Creneau </title>
            <link rel="stylesheet" href="Accueil.css" />
            <link rel="SHORTCUT ICON" href="./edt.jpg" />
    </head>


    <body>    
         
    <section>
      

        

        
         
    <!--<form method='POST' action='/EDT/PromoNivGradForm.do'> -->
   <%
    String form ="";
    
    
        ArrayList<Formation> formation = new ArrayList<Formation>();
       
        formation = EDT.api.API.getFormation();
        session.setAttribute( "formation", formation );
        
        form += "<form method='POST' action='/EDT/SupprCreneau2.do' target='section'>";
        form += "<div class='commentaire'>";
        form += "<fieldset>";
        
        
        form +="<legend>    Supprimer un creneau :   </legend>";
        
        
        form += "<p>Veillez choisir une formation : </p>";  
        form +="Formation : <select name='formation'>";
        for (Formation f : formation)
        form +="    <option value='"+f.getNom()+"'>"+f.getNom()+" Expire:"+f.getAnneeEx()+"</option>";
        form +="</select><br/><br/>";
        
             
        form += "<input type='submit' value='valider'/><br/>";
        
        out.println(form);
            
    %>
    
   
    
    
    <html:errors/> 
    
    </fieldset>
    
        
    </div>

    </form>
         
    </section>
    </body>
</html>
